<?php
/**
 * TOP API: taobao.tbk.item.info.get request
 * 
 * @author auto create
 * @since 1.0, 2016.01.05
 */
class TbkItemShareConvertRequest
{
	/** 
		 * 推广位id，需要在淘宝联盟后台创建；且属于appkey备案的媒体id（siteid），如何获取adzoneid，请参考，http://club.alimama.com/read-htm-tid-6333967.html?spm=0.0.0.0.msZnx5
		 **/
		private $adzoneId;
		
		/** 
		 * 选品库的id
		 **/
		private $numIids;
		
		/** 
		 * 需要输出则字段列表，逗号分隔
		 **/
		private $fields;
		
		/** 
		 * 第几页，默认：1，从1开始计数
		 **/
		private $subPid;
		
		/** 
		 * 页大小，默认20，1~100
		 **/
		private $dx;
		
		/** 
		 * 链接形式：1：PC，2：无线，默认：１
		 **/
		private $platform;
		
		/** 
		 * 自定义输入串，英文和数字组成，长度不能大于12个字符，区分不同的推广渠道
		 **/
		private $unid;
		
		private $apiParas = array();
		
		public function setAdzoneId($adzoneId)
		{
			$this->adzoneId = $adzoneId;
			$this->apiParas["adzone_id"] = $adzoneId;
		}

		public function getAdzoneId()
		{
			return $this->adzoneId;
		}

		public function setNumIids($numIids)
		{
			$this->numIids = $numIids;
			$this->apiParas["numIids"] = $numIids;
		}

		public function getNumIids()
		{
			return $this->numIids;
		}

		public function setFields($fields)
		{
			$this->fields = $fields;
			$this->apiParas["fields"] = $fields;
		}

		public function getFields()
		{
			return $this->fields;
		}

		public function setSubPid($subPid)
		{
			$this->subPid = $subPid;
			$this->apiParas["subPid"] =$subPid;
		}

		public function getSubPid()
		{
			return $this->subPid;
		}

		public function setDx($dx)
		{
			$this->dx = $dx;
			$this->apiParas["dx"] = $dx;
		}

		public function getDx()
		{
			return $this->dx;
		}

		public function setPlatform($platform)
		{
			$this->platform = $platform;
			$this->apiParas["platform"] = $platform;
		}

		public function getPlatform()
		{
			return $this->platform;
		}

		public function setUnid($unid)
		{
			$this->unid = $unid;
			$this->apiParas["unid"] = $unid;
		}

		public function getUnid()
		{
			return $this->unid;
		}

		public function getApiMethodName()
		{
			return "taobao.tbk.item.share.convert";
		}
		
		public function getApiParas()
		{
			return $this->apiParas;
		}
		
		public function check()
		{
			
			RequestCheckUtil::checkNotNull($this->adzoneId,"adzoneId");
			RequestCheckUtil::checkNotNull($this->subPid,"subPid");
			RequestCheckUtil::checkNotNull($this->numIids,"numIids");
			RequestCheckUtil::checkNotNull($this->fields,"fields");
		}
		
		public function putOtherTextParam($key, $value) {
			$this->apiParas[$key] = $value;
			$this->$key = $value;
		}
}
